<?php $value = !isset($vo['valobj']) ? $data[$field] : $vo['valobj'][$field]; ?>
<?php $value = emptyDef($vo['value'],$value,'isset'); ?>
<?php $checkbox_data = empty($value)?[]:explode(',', $value); ?>
<div class="mb-3 col-md-12">
    <label for="{:$field}">{:$vo['name']} {:validsHtml($vo['valids'])} <input class="form-check-input checkbox_all" type="checkbox" /></label>
    <div class="col-md-12" id="{:$field}_div">
        <?php foreach ($vo['params'] as $param_k => $param_v): ?>
        <div class="form-check form-check-inline">
          <input class="form-check-input" type="checkbox" id="{:$field.'_'.$param_k}" name="{:$field}[]" value="{:$param_k}" {:isset($value) && in_array($param_k,$checkbox_data)?'checked':''} {:$global_disabled?'disabled':''}>
          <label class="form-check-label" for="{:$field.'_'.$param_k}">{:$param_v}</label>
        </div>
        <?php endforeach ?>
    </div>
</div>